Return to doc.sitecore.com

Valid for Sitecore 5.2, 5.1.1
  Adding Support for Properties
Prev Next

A data provider may support the storing of unstructured data (that is, data stored in [key, value] pairs).  Properties are often used to store miscellaneous data, such as the data provider version and the date of the previous publish operation.  The data provider must implement the following methods to support properties.

Return Value

Method Name

Parameters

Description

string

GetProperty

string name
CallContext context
 

Returns the current value of the property identified by name.

bool

RemoveProperty

string name
bool isPrefix
CallContent context

Removes the property identified by name.  If isPrefix is True, the method removes all properties with names that start with name (case insensitive).  Returns True if the operation was successful, False otherwise.
 

bool

SetProperty

string name
string value
CallContext context

Stores value in the property identified with name. Returns True if the operation was successful, False otherwise.


Prev Next